package cn.bdqn.utils;

import java.util.Scanner;

public class UserRegistry {
	public static boolean register(String loginld,String loginPwd,String againPwd) {
		if(loginld.length()<1) {
			System.out.println("用户名长度不少于1个字符！");
			
			return false;
		}
		if(loginPwd.length()<6) {
			System.out.println("密码长度不少于6个字符！");
			return false;
		}
		
		if(loginPwd.contentEquals(againPwd)) {
			System.out.println("E-mail无效!");
			return true;
			
		}
		System.out.println("作业提交失败!");
		return true;
	}
	
	
	public static void main(String[] args) {
		Scanner input=new Scanner(System.in);
		System.out.println("请输入java用户名：");
		String loginld=input.nextLine();
		
		System.out.println("请输入你的邮箱：");
		String loginPwd=input.nextLine();	
		
		
		

	}

}
